package com.gpnu.crm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.gpnu.crm.domain.Role;
import com.gpnu.crm.query.QueryObject;

public interface RoleMapper {
	  int deleteByPrimaryKey(Long paramLong);
	  
	  int insert(Role paramRole);
	  
	  Role selectByPrimaryKey(Long paramLong);
	  
	  List<Role> selectAll();
	  
	  int updateByPrimaryKey(Role paramRole);
	  
	  List<Role> selectForList(QueryObject paramQueryObject);
	  
	  void deleteRelation(Long paramLong);
	  
	  void insertRelation(@Param("roleId") Long paramLong1, @Param("permissionId") Long paramLong2);
	  
	  List<String> selectRoleNamesByEmployeeId(Long paramLong);
}
